from threading import Thread
import time

class Scheduler(Thread):
	def __init__(self,time):
		Thread.__init__( self )
		self._kill=0
		self._time=time

	def run(self):
		print "Start Thread..."
		while (not self._kill):
			print "Start"
			time.sleep(time)
			print "Hola"

	
	def kill(self):
		self._kill=1
